-- GENERATED SPELL FOR [Overseer Faedris] --


function spell0_32250(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(51797,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32250', 1500, 1)
end

function spell1_32250(pUnit, Event) --@Drain Life,Drain--
pUnit:FullCastSpellOnTarget(17173,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_32250', 5000, 1)
end

function Sorts_32250(pUnit, Event)
local choix_sorts_32250 = math.random(0, 1)
if choix_sorts_32250 == 0 then
pUnit:RegisterEvent('spell0_32250', 1, 1)
end
if choix_sorts_32250 == 1 then
pUnit:RegisterEvent('spell1_32250', 1, 1)
end
end

function mob32250_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32250', math.random(1500, 3000), 1)
end

function mob32250_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32250_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32250_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32250, 1, 'mob32250_Action')
RegisterUnitEvent(32250, 2, 'mob32250_Leave')
RegisterUnitEvent(32250, 3, 'mob32250_Kill')
RegisterUnitEvent(32250, 4, 'mob32250_Die')
